package com.mall.shopping.converter;

import com.mall.shopping.dal.entitys.Panel;
import com.mall.shopping.dal.entitys.PanelContent;
import com.mall.shopping.dto.PanelContentDto;
import com.mall.shopping.dto.PanelDto;
import org.apache.ibatis.type.MappedTypes;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface PanelConverter {

    PanelDto panel2Dto(Panel panel);

    List<PanelDto> panelList2Dto(List<Panel> panelList);

    PanelContentDto panelContent2Dto(PanelContent panelContent);

    List<PanelContentDto> panelContentList2Dto(List<PanelContent> panelContents);
}
